import request from "@/utils/request";
// 创建信息
export function company_add(data) {
  return request({
    url: "/company",
    method: "post",
    data: data
  });
}
export function companyList(query) {
  return request({
    url: "/company/list",
    method: "get",
    params: query
  });
}
export function company_get (data) {
  return request({
    url: `/company/${data}`,
    method: 'get',
  })
}
export function company_update(data) {
  return request({
    url: "/company",
    method: "put",
    data: data
  });
}
export function company_delete(deptId) {
  return request({
    url: "/company/" + deptId,
    method: "delete"
  });
}
export function company_sure(data) {
  return request({
    url: "/company/examine/and/approve",
    method: "post",
    data: data
  });
}

// 咨询公司客户管理
export function queryKehu(data) {
  return request({
    url: "/company/customer/list",
    method: "get",
    params: data
  });
}
export function addKehu(data) {
  return request({
    url: "/company/customer",
    method: "post",
    data: data
  });
}
export function updateKehu(data) {
  return request({
    url: "/company/customer",
    method: "put",
    data: data
  });
}
export function delKehu(ids) {
  return request({
    url: `/company/customer/${ids}`,
    method: "delete",
  });
}
export function getLogList(data) {
  return request({
    url: `/company/customer/log/${data.id}`,
    method: "get",
    params: data
  });
}